package com.spic.business.plan.inspection.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.business.common.core.domain.BasicEntity;
import com.spic.common.core.annotation.Excel;
import lombok.Data;

import java.util.Date;


/**
 * 应急物资检查对象 plan_inspection_history
 *
 * @author liuyz
 * @date 2021-10-28
 */
@Data
public class PlanInspectionHistory extends BasicEntity
{
    private static final long serialVersionUID = 1L;

    /** 应急物资检查主键id */
    private Long id;


    /** 检查记录名称 */
    @Excel(name = "检查记录名称")
    private String inspectionName;

    /** 物资名称(多选逗号隔开) */
    @Excel(name = "物资名称")
    private String materialName;

    /** 检查物资Id(多选逗号隔开) */
    @Excel(name = "检查物资Id")
    private String materialId;

    /** 检查人 */
    @Excel(name = "检查人")
    private String rummager;

    /** 检查时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    @Excel(name = "排查时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date inspectionTime;


    @JsonFormat(pattern = "yyyy-MM" ,timezone = "GMT+8")
    @Excel(name = "检查周期", width = 30, dateFormat = "yyyy-MM")
    private Date cycle;

    public Date getCycle() {
        return cycle;
    }

    public void setCycle(Date cycle) {
        this.cycle = cycle;
    }

    /** 检查记录说明 */
    @Excel(name = "检查记录说明")
    private String problemDescription;


    /** 备注 */
    @Excel(name = "备注")
    private String note;


    @TableField(exist = false)
    private String beginTime;

    public String getBeginTime() {
        return beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    @TableField(exist = false)
    private String endTime;


    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Long getId() {
        return id;
    }

    public String getInspectionName() {
        return inspectionName;
    }

    public String getMaterialName() {
        return materialName;
    }

    public String getMaterialId() {
        return materialId;
    }

    public String getRummager() {
        return rummager;
    }

    public Date getInspectionTime() {
        return inspectionTime;
    }

    public String getProblemDescription() {
        return problemDescription;
    }

    public String getNote() {
        return note;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setInspectionName(String inspectionName) {
        this.inspectionName = inspectionName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public void setRummager(String rummager) {
        this.rummager = rummager;
    }

    public void setInspectionTime(Date inspectionTime) {
        this.inspectionTime = inspectionTime;
    }

    public void setProblemDescription(String problemDescription) {
        this.problemDescription = problemDescription;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
